﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media;

namespace TeBigCommonUI.Converter
{
    public class ProgressColorConverter : IMultiValueConverter
    {
        // Token: 0x06002AC3 RID: 10947 RVA: 0x0007BAA4 File Offset: 0x00079CA4
        public object Convert(object[] value, Type targetType, object parameter, CultureInfo culture)
        {
            if (targetType == typeof(Brush))
            {
                return new LinearGradientBrush(Colors.Blue, Colors.Green,
                    new Point(0, 0.5), new Point(1, 0.5));
            }

            return null;
        }

        // Token: 0x06002AC4 RID: 10948 RVA: 0x0007BB28 File Offset: 0x00079D28
        public object[] ConvertBack(object value, Type[] targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}